package org.jeecgframework.web.service;
import java.io.Serializable;

import org.jeecgframework.core.common.model.json.AjaxJson;
import org.jeecgframework.core.common.service.CommonService;
import org.jeecgframework.web.system.pojo.base.CbsVerificationCodeEntity;

public interface CbsVerificationCodeServiceI extends CommonService{
	
 	public <T> void delete(T entity);
 	
 	public <T> Serializable save(T entity);
 	
 	public <T> void saveOrUpdate(T entity);
 	
 	/**
	 * 默认按钮-sql增强-新增操作
	 * @param id
	 * @return
	 */
 	public boolean doAddSql(CbsVerificationCodeEntity t);
 	/**
	 * 默认按钮-sql增强-更新操作
	 * @param id
	 * @return
	 */
 	public boolean doUpdateSql(CbsVerificationCodeEntity t);
 	/**
	 * 默认按钮-sql增强-删除操作
	 * @param id
	 * @return
	 */
 	public boolean doDelSql(CbsVerificationCodeEntity t);
 	
 	/**
 	 * @author xiul
 	 * 2016-8-1 下午5:54:06
 	 * Description 用户登录发送验证码
 	 * @param mobilePhone 手机号
 	 */
 	public AjaxJson userLoginCheck(String mobilePhone);
 	
	/**@author xiul
	 * 2016-8-2 下午3:07:29
	 * Description 
	 * @param mobilePhone 手机号
	 */
	public AjaxJson userRetrievePassword(String mobilePhone);

	/**@author xiul
	 * 2016-8-3 下午12:02:32
	 * Description 
	 * @param mobilePhone 手机号
	 */
	public AjaxJson sendSMSOfAppUserChangePwd(String mobilePhone);

	/**@author xiul
	 * 2016-8-3 下午2:39:20
	 * Description 
	 * @param mobilePhone 手机号
	 */
	public AjaxJson sendSMSOfAppUserChangePhone(String mobilePhone);

    public boolean checkVerifyCode(String sessionId,String verifyCode);
}
